package com.cms.service;

import com.cms.bean.Middle;
import com.cms.bean.Move;
import com.cms.bean.Typea;
import com.cms.mapper.UsersMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public  class Servicelmpl implements MoveService {
    @Resource
    private UsersMapper usersMapper;

    @Override
    public List<Move> SelectMove(Map<String, Object> map) {
        return usersMapper.SelectMove(map);
    }

    @Override
    public int DeleteMove(Integer mid) {
        return usersMapper.DeleteMove(mid);
    }

    @Override
    public int DeleteMiddle(Integer mid) {
        return usersMapper.DeleteMiddle(mid);
    }

    @Override
    public int AddMove(Move move) {
        return usersMapper.AddMove(move);
    }

    @Override
    public int AddMiddle(Middle middle) {
        return usersMapper.AddMiddle(middle);
    }

    @Override
    public int UpdateMove(Move move) {
        return usersMapper.UpdateMove(move);
    }

    @Override
    public int UpdateMiddle(Middle middle) {
        return usersMapper.UpdateMiddle(middle);
    }

    @Override
    public List<Typea> SelectTypea() {
        return usersMapper.SelectTypea();
    }
}
